package com.thz.websqlit.user.repository;

import com.thz.websqlit.mybatis.entity.PtContactEnity;
import com.thz.websqlit.mybatis.entity.PtUserEntity;
import com.thz.websqlit.user.entity.MailVfcCodeEntity;
import com.thz.websqlit.user.entity.UserSearchEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoDao {
    List<PtUserEntity> queryUserList(@Param("search") UserSearchEntity search);

    PtUserEntity queryLogin(@Param("userName") String userName,@Param("password") String password);

    PtUserEntity queryUserInfoById(@Param("userUuid")String userUuid);

    void updateUserInfoById(@Param("entity") PtUserEntity entity);

    Integer  queryUserInfoByItem(@Param("entity") PtUserEntity entity);

    void updateUserPasswdById(@Param("entity") PtUserEntity entity);

    void regiterUser(@Param("entity") PtUserEntity entity);

    void updateUserPhoto(@Param("entity")PtUserEntity userEntity);

    List<PtContactEnity> queryFriendsListById(@Param("userUuid") String userUuid,@Param("search") String searchUserKey);

    List<PtUserEntity> queryUserInfoByMail(@Param("email") String email);

    void updatePasswordByMail(@Param("entity")MailVfcCodeEntity entity);
}
